<?php
require_once 'bootstrap.php';
require_once 'core/Amfphp/ClassLoader.php';

$config = new Amfphp_Core_Config();
$config->serviceFolderPaths = array(Config::$rootPath . 'app/services/');

if (Config::$environment == 'production') {
    $config->disabledPlugins[] = 'AmfphpServiceBrowser';
}

$gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway($config);
$gateway->service();
$gateway->output();
?>